/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "盘点明细项实体",TableName = "InventoryCountItem")]
    public partial class InventoryCountItem:BaseEntity
    {
        /// <summary>
       ///
       /// </summary>
       [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
       [Key]
       [Display(Name ="InventoryCountItemId")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int InventoryCountItemId { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="CountCode")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string CountCode { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="ProductId")]
       [Column(TypeName="bigint")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public long ProductId { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="ProductCode")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string ProductCode { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="ProductName")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       public string ProductName { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="Spec")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       public string Spec { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="Unit")]
       [MaxLength(20)]
       [Column(TypeName="nvarchar(20)")]
       [Editable(true)]
       public string Unit { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="BookStock")]
       [DisplayFormat(DataFormatString="15,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? BookStock { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="BookAmount")]
       [DisplayFormat(DataFormatString="15,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? BookAmount { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="CountLocation")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string CountLocation { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="CountQuantity")]
       [DisplayFormat(DataFormatString="15,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? CountQuantity { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="ProfitLossQuantity")]
       [DisplayFormat(DataFormatString="15,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? ProfitLossQuantity { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="ProfitLossAmount")]
       [DisplayFormat(DataFormatString="15,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? ProfitLossAmount { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="ReferencePrice")]
       [DisplayFormat(DataFormatString="15,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? ReferencePrice { get; set; }

       /// <summary>
       /// 盘点状态：盘盈、盘亏、无盈亏
       /// </summary>
       [Display(Name ="CountStatus")]
       [Column(TypeName="enum")]
       [Editable(true)]
       public string CountStatus { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="InOutStatus")]
       [MaxLength(4)]
       [Column(TypeName="nvarchar(4)")]
       [Editable(true)]
       public string InOutStatus { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="Remark")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string Remark { get; set; }

       
    }
}